import { defineStore } from 'pinia' 
import centerApi from '../../api/center'
export const useCenterStore=defineStore('center',{
    state:()=>({
        allOrderList:[],
        keyWords:'',
        defaultActiveIndex:"5"
    }),
    actions:{
        async getAllOrderList(stateCode){
            try {
                const res = await centerApi.getMyOrderList(stateCode)
                // console.log(111,res.data)
                this.allOrderList=res.data
                
            } catch (error) {
                // 在组件里做提示
                return Promise.reject(error)
            }            
        },
    },
    getters:{}

})